# -*- coding: utf-8 -*-
# @Time : 2021/3/4 15:34
# @Author : 加钱哥
# @Email : scg@gmail.com
# @File : tool_open_yaml.py
# @Project : xiaobai



import os

BASE_PATH=os.path.dirname(os.path.abspath(__file__)).split('tools')[0]
DATA_PATH=os.path.join(BASE_PATH,'datas')
CASES_PATH=os.path.join(BASE_PATH,'cases')
REPORT_PATH=os.path.join(BASE_PATH,'report')

import hashlib
def set_res_data(res):
    if res:
        return res.lower().replace('":"','=').replace('":','=')


def hash_code(passwd):
    md5=hashlib.md5()
    md5.update(passwd.encode('utf_8'))
    return md5.hexdigest()

import yaml
def read():
    with open('../datas/pre-treatment_register.yaml',encoding='utf-8') as f :
        data=yaml.load(stream=f)
        return data


print(read())